#pragma once

#include <iostream>
#include <string>
#include <ctime>

#define NORMAL 1
#define WARNING 2
#define DEBUG 3
#define FATAL 4

#define LOG(LEVEL ,MESSAGE) log(#LEVEL, MESSAGE, __FILE__, __LINE__) // 双下划线 开头表明是编译器的变量 可以自动获取当前文件信息


void log(std::string level, std::string message, std::string file, int line)
{
    std::cout << "[" << level << "]" << " [" << message << "]" << " [" << file << ": " << line << "]" << std::endl;
}

